<%--
  Created by IntelliJ IDEA.
  User: 17728
  Date: 2020/10/19
  Time: 11:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <%@ include file="/pages/common/head.jsp" %>
    <style type="text/css">
        .a {
            width: 80vw;
            margin: 0 auto;
            position: relative;
            top: 70px;
        }

        #bottom {
            width: 100%;
            height: 180px;
            position: fixed;
            bottom: 0;
            background-color: #2A2730;
            color: #FFFFFF;
        }

        #bottom p {
            text-align: center;
        }
    </style>
</head>
<body>
<nav class="navbar navbar-default">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                    data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">&nbsp;&nbsp;&nbsp;作业棒&nbsp;&nbsp;&nbsp;</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li><a href="MessageServlet?action=queryMessage1">教师界面</a></li>
                <li><a href="pages/teacher/teach_assign.jsp">布置作业</a></li>
                <li class="active"><a href="HwServlet?action=queryHw&id=${sessionScope.teacher.id}">作业管理<span
                        class="sr-only">(current)</span></a></li>
                <li><a href="pages/teacher/teacher_update.jsp">个人信息</a></li>
                <li><a href="pages/teacher/teacher_change.jsp">改密码</a></li>

            </ul>

            <ul class="nav navbar-nav navbar-right">
                <li><a href="UserServlet?action=logout">&nbsp;&nbsp;&nbsp;退出&nbsp;&nbsp;&nbsp;</a></li>

            </ul>
        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>
<div class="a">
    <table class="table table-hover">
        <thead>
        <tr>
            <td colspan="3" align="center"><h3>这次作业的名字</h3></td>
        </tr>
        <tr>
            <td>学生</td>
            <td>下载</td>
            <td>评分</td>
            <td>操作</td>
        </tr>
        </thead>
        <c:forEach items="${requestScope.studentHw}" var="studentHw">
            <tr>

                <td>${studentHw.name}</td>
                <td><a href="HwStuServlet?action=downloadStuHw&id=${studentHw.hw_stu_attach_id}">下载</a></td>
                <form action="HwStuServlet?action=updateHwStu&id=${studentHw.id}" method="post">
                    <td><input type="text" name="status" value="${studentHw.status}"></td>
                    <td>
                        <button type="submit">打分</button>
                    </td>
                </form>
            </tr>
        </c:forEach>
    </table>
</div>
<%@include file="/pages/common/footer.jsp" %>
</body>
</html>
